 ENT.Type = "anim"  
 ENT.Base = "base_gmodentity"     
 ENT.PrintName		= "Space Anomalies Spore"  
 ENT.Author			= "LuaPineapple, Remade by ludsoe" 
 ENT.Category		= "Space Anomalys"
ENT.Spawnable			= false
ENT.AdminSpawnable		= true


ENT.Stype			= 0
ENT.maxspores		= 300 --Was 200 increased for larger infestations.

ENT.MineProof		= true
ENT.SporeProof		= true
ENT.Tracking		= false
ENT.Baby			= false
ENT.Target			= nil
ENT.weld			= false
ENT.superinfest		= false
ENT.Latched			= false
ENT.CX				= 255
ENT.CY				= 255
ENT.CZ				= 255
ENT.CA				= 255


function ENT:SetTracking( val )
	self.Entity:SetNetworkedBool("ClTracking",val,true)
end

function ENT:GetTracking()
	return self.Entity:GetNetworkedBool("ClTracking")
end

function ENT:SetSporeColor(X,Y,Z,A)
	self.CX				= X
	self.CY				= Y
	self.CZ				= Z
	self.CA				= A
end

function ENT:Setup(Type)
	//local Type = math.random(1,8)
	if Type==1 and self.Baby==false then
		//Seeker Spore
		self.Stype = 1
		self:SetSporeColor(10,10,10,255)
	elseif Type==8  and self.Baby==false then
		//Boomer Spore
		//self.Stype = 2
		self.Stype = 0 // Disabled boomer spore for now
		self:SetSporeColor(220,0,0,255)
	else
		//Spreader Spore
		self.Stype = 0
		self:SetSporeColor(255,255,255,255)
	end
	if not self.weld then
		self.latched = false
	end
end